import request from "../utils/request.js";
// 接口地址
const loginUrl = '/api/members/login';
const registerUrl = '/api/members/register';

// 登录
export function login(data) {
  return request({
    url: loginUrl,
    method: 'post',
    data
  })
}
// 注册
export function register(data) {
  return request({
    url: registerUrl,
    method: 'post',
    data
  })
}